package Dome1;

public class Text1 {
    public static void main(String[] args) {
        String str1="wang";
        System.out.println(str1);

        String str2=new String();
        System.out.println(str2);

        String str3 = new String("123");
        System.out.println(str3);

        char arr[]={'a','b','c'};
        String str4 = new String(arr);
        System.out.println(str4);

        String str5 = new String(arr,1,2);
        System.out.println(str5);
    }
}
